{extend name="layout:default" /}
{block name="title"}添加{/block}
{block name="content"}
<div class="box box-default">
    <div class="box-header with-border">
        <h3 class="box-title">添加题目</h3>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
            <a href="{:url('index')}" class="btn btn-info">返回</a>

        <form class="form-horizontal" method="post" enctype="multipart/form-data">
            <div class="form-group">
                <label class="col-sm-2 control-label">题目&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">*</span></label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="title" placeholder="题目">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">所属题库&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">*</span></label>
                <div class="col-sm-8">
                    <select name="qid" class="form-control">
                        {volist name="banks" id="vo"}
                        <option value="{$vo.id}">{$vo.title}</option>
                        {/volist}
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">题目类型&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">*</span></label>
                <div class="col-sm-8">
                    <input type="radio"  value="1" name="type" checked >单选
                    <input type="radio"  value="2" name="type" >多选
                </div>
            </div>

            <?php for($i = 1;$i<=10;$i++){ ?>
            <div class="form-group">
                <label class="col-sm-2 control-label">选项 <?php echo $num[$i]?></label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="<?php echo 'content'.$i ?>" placeholder="没有则不填">
                </div>
            </div>
            <?php }?>

            <div class="form-group">
                <label class="col-sm-2 control-label">正确答案(输入ABC即可)&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">*</span></label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="answer" placeholder="ABC">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">状态</label>
                <div class="col-sm-8">
                    <input type="radio"  value="1" name="status" checked >正常
                    <input type="radio"  value="2" name="status" >禁用
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-4">
                    <button type="submit" class="btn btn-info pull-right">提交</button>
                </div>
            </div>
        </form>
    </div>
    <!-- /.box-body -->
</div>
{/block}